Add support for NetBSD
netbsd: suppress compiler warning