Adds check for osx