which doesn't help as I don't want to buy Visual Studio
Download a copy of
Platform SDK, aslong as its as old or newer than your OS. 2003 is fine. Activestate compiles all its XS modules for its PPM tool using a circa 2002-2003 Platform SDK (or a VC 6 with circa 2003 Platform SDK headers for NT 5.1/5.2 compatibility).