making MTAnimation ios and osx compatible