soapy: fixes for msvc compile