migrate to GLFW3
move cleanup() just before main()
update Xcode project
update Xcode project
include cstdlib in main.cpp