Remove obsolete osx code