Fix compile issue on iOS6