switch from glut to glfw; fix compilation errors; put a spinning triangle in main loop for now