Fix compilation error on non-Windows