Fix compile errors in network <= 2.3

`Network.Socket.sClose` is deprecated in network 2.4 -- but 2.3, which does not have the new names, is still in wide use.

I also added a `.gitignore`.