Fixes for Cordova 3.0