Fix new httpd APIs to work on Windows