modify ogles to be linux-compatible