(darwin) agp / video build fixes

regression caused by glfun/glshared changes
messed up darwin builds as the GL environment
looks somewhat different there.