libdbp: Use std::regex if compiling with GCC >= 4.9