Fix NetBSD build problem