fix gaia compile in code-pure mode's compile error.