Fixed compilation bug for XCode 6.1