Fix build for Travis' g++ version