Fix some compiler warnings
Using JWZ's OpenGL compatibility shim