update build to support Xcode 5.1 (iOS 7.1)
fix warnings
update tests for Xcode 5.1