Fixed compilation on CLang (OS X)