Fix openat on linux