Add Patch based on http://forum.nginx.org/read.php?2,251740,251740#msg-251740