Use ENABLE_SHARED vs. SET_BOOST_TEST_DYN_LINK in Makefile.am.