Make Quake compile on OSX

- change strnicmp with strncasecmp
- time collides with time.h
- fix up OpenGL headers on OSX