Fixes windows bug with filewatcher

Adds a fix to Fork::Queue to solve a crash on Strawberry
Perl (Windows) after 2 minutes (related to socketpair).
Also adds/improves error handling with system calls.