recreated branch from https://github.com/ledgerwatch/erigon-lib/pull/891 without fixups for windows tests