fixed ios7 support when building with ios8 sdk