Fix compile errors with g++ 4.8.
Fix compile errors with g++ 4.8.

robertoraggi/cplusplus,robertoraggi/cplusplus,robertoraggi/cplusplus,robertoraggi/cplusplus,robertoraggi/cplusplus,robertoraggi/cplusplus