"type Wchar int32" should be "type Wchar uint16" on Windows 

... in order to compile. (Otherwise we hit a lots of failed casts)