added check for c++11/c++0x and only if true, enable async