Making compilable on OSX