conditionally move mkfifo to common code
move mkfifoat to shared code
add flags support for fchmodat, as NetBSD supports