Some NetBSD fixes