Fix OpenGL linker error on OS X