Fixed NetBSD build