fix gaia compiler error for linux g++ compiler.