Okay, with 'hg serve' clone seems to work if an absolute path is given, that is http://127.0.0.1//c:/myrepo, but cgi still crashes with absolute path as well.