fixed http_server core dump in cygwin.