BasicParticles working with glfw.
Further work on events and changes on the sleep time of the main thread based on the Msw implementation.