Use <stddef.h> to get wchar_t, rather than <wchar.h> (or nothing, in putty.h).