fix errors and retarget for ios 7
Merge pull request #1 from kevinj04/fixIOSTarget

fix errors and retarget for ios 7