Fix for XBuild environment.