Fixed compilation issues / warnings for Xcode 6.1.1

Hi Josh - found a few minor issues. Thanks for sharing.