Fix for NetBSD