set gl attributes before creating the window, or some of them might be ignored (like vsync on osx); also don't skip some reloads when switching to fullscreen and back; finally did a little code re-organisation
if(WIN32 AND NOT UNIX)
file(GLOB DLLs *.dll)
file(GLOB ICOs *.ico)
install(FILES
${DLLs}
${ICOs}
DESTINATION bin)
endif(WIN32 AND NOT UNIX)