some modifications for running Gearsystem on jailbroken devices