Update phonegap to 2.3
Fix PhoneGap definitions, to complie (at least)