Add visibility support for Boost.MPI. Fixes #2114

Found while cleaning up my git svn mirror after the conversion.