[WIP] PhoneGap support for native builds