Add visibility support for Boost.Asio. Fixes #2114

Found while cleaning up my git svn mirror after git conversion. Add visibility support for gcc and clang using common macros from Boost.Config