Fixes for Cordova 3.5.0