Fixed a build error and several warnings.

This solves a build error as well as several warnings. If this is acceptable, when you merge I would appreciate it if you'd tag it, probably as 1.1.1, so that I can push an updated CocoaPod.

Thanks!