Fixed compilation on OSX.