Osx related codes removed