Various windows MSVC++ compatibility fixes (VA_ARGS workaround, and boost:: and asio:: namespace issues)

Further, some utility functions for Shares (more to follow)