added c++11 and root6 support