Fix zgossip errors/warnings on MSVC and missing DLL exports.