Fix compilation error on Mac