use boost::regex instead of std::regex to work with gcc < 4.9