Fix g++ build.