add option to build with dynamic linking of boost unit testing framework