Fix build in OS X 10.9
Merge pull request #4181

f25e3ad Fix build in OS X 10.9 (Federico Bond)