Fix incorrect HTTP status code when using IIS and FastCGI. bugid:110694
Fix that GD does not work well when using IIS and FastCGI. bugid:110689