Port bgfxplatform.c99.h