Fix g++ build with travis