Fix compilation with MacOSX 10.10 and 10.9.