Make config compatible with C++11