Fix generated OpenGL library on OSX.