fix Windows build: structs and classes mangle typenames differently