Changes to build with cordova 3.0.0