Switch to global gl functions for Linux/Mac.

This allows us to load the GL function pointers via
the platform's GetProcAddress API. This allows us to
switch between headless and windowed rendering at
runtime, instead of linking to a different library.
Merge pull request #5 from glennw/load-gl-functions

Switch to global gl functions for Linux/Mac.