Upgraded project for Xcode 5
Fixed more compiler warnings