A few fixes ported from the previous bgfx update to make OSX / GL work