More work done on NetBSD support