[boost] Convert library to use Boost.Optional?