Fix build for building with g++ 4.8