Fix compilation error on OS X.