Load osx module only for OS X