Fix compilation error on MacOSX with missing const