+1  A: 

The problem was that I was building with 1-byte alignment. I needed to do this:

#pragma pack(push, 8)
#include <httpext.h>
#pragma pack(pop)

Thanks to nobugz for the answer.

HBFan