some fixes around doctype module on Windows (C4099 struct/class,
missing libwfsingleton, removed json in doctype makefile)