some netbsd versions do not have openat