Porting to osx