Slightly improved OpenGL error handling on Windows