Changes so gameloop can also build on mac. Not tested on PC yet (as I dont have access).