Initial stab at getting a working build on OSX