Apple support
handle OSX without pkgconfig
OSX should use OpenGL framework instead