Xcode 5.1 compile changes

Moved changes documented in #21 to new branch to properly present pull request