applying upstream patch to mochiweb. See (https://github.com/mochi/mochiweb/pull/91/)