check HAVE_BOOST_LOCALE and fix compilation when boost-locale is not available