Update example with new glfw3 features