Fix Mac OS X compilation.