Fixes two compile errors that happen on Ubuntu 14.04 in OpenGLWindow module.