fix to build on iOS 8.1