Bugfix glfw fixes - work in progress.