copied over a bunch of the stuff from our source compile of nginx