make boost log optional

Being able to build without boost log allows to build with boost 1.53.