Changes required for cordova-lib
Updated to support bb10