Fixed compilation on os x