Fixed some build problems and fixed a HTTP pipelining bug where the write request was being corrupted causing libuv some serious problems.