Compile on OSX

Probably not tested enough but compiles and seems to work