Fixed building under g++ 4.8 for travis ci builds