Fixed build for < iOS 8