Fix OS X compilation.