Replaced waitpid with waitpid_non_intr

Reported by Anders F Björklund.
Don't use the non-portable -D flag to install

To make it work with BSD install(1) in addition to GNU install(1),
make sure to use "install -d && install" rather than install -D.