add support for NetBSD.