Fixing more build problems in MinGW

- Windows does not have wait.h

- More usages of S_IRGRP && S_IROTH

- Implementing an alternative way to check for a
process execution status in Windows.

- Disabling windows support until a better mechanism is found.