Default VERSION to unknown if not set by compiler
Fix error.h header guard
Refactor stat.c to proc.c
Allow list of PIDs to wait