Add missing declaration of fchownat
wait.h is not available on OS X
.gitignore