Support C++11 in Clang and GCC 4.6.
Use C++11 for portable sleep.