add detection support for NetBSD