Fixed compilation under OS X