Fixed compilation errors on Mac OS X