Fixed compilation errors on OS X 10.9