Make OSX buildable