Fix Boost.Log dynamic linking.

Some distributions of Boost.Log, including Debian's, have linking
problems.  Specifically defining BOOST_LOG_DYN_LINK fixes it.