configure: check for -std=c++11 support and enable st/mesa test accordingly