Fix compilation issues on Windows

This set of changes should fix compilation issues on VS2010. We got rid of all the ssize_t types, since they didn't seem to be doing anything special. Also, added linking to Ws2_32 since the endian conversion functions need it.