fixed size to int conversion and cordova 3.6 deprecation warnings for iOS