Fixed compilation errors with Unity 5 and Xcode 6.1.