fixed linker error on Linux

- On Linux, BOOST_LOG_DYN_LINK must be defined (set to 1) before including the boost log headers.