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.