fix boost::optional to bool conversion to work with breaking changing in boost 1.56