Fixed some problems with building this project for iOS 6.1.