Add option for dynamically or statically linking to Boost