Fix build errors

Fix build errors:
- RegisterViewController.m in AppDemo was missing a semicolon.
- OnePasswordExtension.m failed to compile under Xcode 5 (iOS 7 SDK) so I #ifdefed out some code when building with a pre iOS 8 SDK.