Fixed compilation on OSX Mavericks