Fixed compilation for MacOS with Xcode 5.