fix phonegap building issue