Fix compilation error after update to cordova2.7

Fix compilation error introduce by pull request #296