Fix doors not working properly.
Fix OpenGL on Win32 (Thanks NY00123)