Fixing some mac warnings, adding license headers, abstracting rift glfw window creation