Added win32 OpenGL headers and fixed threading in Logger.