Make gPlatformBatch not global.