some netbsd related changes