added compile_phonegap.sh, including version handling