lib/util.h: use types compatible with DWORD