Mac osx compatability