[Build] Fix g++ compilation.