soapy: cleanup typedefs and windows warnings