make running on windows (msys)

pipe code from
https://github.com/trogdoro/xiki/issues/27#issuecomment-14896299
related to #27, #53