Add in optimization

This was needed to browserify the `http` module

https://github.com/joyent/node/blob/v0.10.33-release/lib/net.js#L527
Merge pull request #16 from Janpot/patch-1

Add in optimization