IOS tidying

- Code sign the unit tests when building for devices.
- Build for iOS 8.1+.
- Inherit DEBUG=1 instead of setting it again.