improve build script and rebuild with iOS 8.1. Fixing #7