Fix linking GDAL.

On linux, this included /usr/lib64, which was causing the build to link
against mesa OpenGL. Just remove the directory.
Make failure to get OpenGL functions a fatal error.

This moves it from a random crash to an explicit reason to quit.