fixed OS X support

I was looking for a tutorial that shows how to use modern OpenGL + libRocket and SDL2 without the SDL_Renderer and your project was the only thing I've found.

When I run it with sample demo.rml + other assets from libRocket samples I just see an empty black window. 

At least I can share my changes which add OS X (and possibly linux) support :-(