make osx compatile