The errors seem to suggest that somehow both winsock.h and winsock2.h got #included together (the two are not compatible with each other).
I just ran main.c through the VC++ preprocessor, and I only see winsock.h being included. TPT compiles fine for me on my computer.
What happens if you go to Project Properties > Configuration Properties > C/C++ > Preprocessor > Preprocessor Definitions and add WIN32_LEAN_AND_MEAN to the list?
Or, rather, try redownloading the source and/or the required libraries for it?
After 3 re-downloads and re-setups, each producing different errors, the current one has only 4. But hell if I know how to solve them. http://pastebin.com/nQFMRTnd
EDIT:Actually, after changing them to char* and getting rid of a pesky inline, works like a charm.