Fix compilation error on some systems