try to fix opengl build in MacOS