fixed build errors for ios sdk 6.1