Fixed compilation errors due to minimum iOS version needing to be 6.0