only use fstatat and others legacy stat syscalls if they exist