fix build error on ios 8