changes to get it to compile and install on an ipad 1