Fixing warnings

- Added missing wait files
- #include wait.h in tish_debug.c
- Set errno on fork() if it fails