Fix compilation error on mac