Fix x64 builds.
Merge pull request #981 from BeamNG/fix_opengl_x64

Fix x64 builds.