added osX libraries
changes on auto rotation