Update to build on NetBSD