Fixes for OpenGL driver on Windows