Fix NetBSD build