Convert Windows NamedPipe errors to their POSIX counterparts

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>