Remove osx depending code