fix compilation issue on old (before 8.0) iOS SDK