fix for ios8 build