some fixes in wtest for NetBSD