Add #define to use C++11 std libs.

If QST_USE_CPP11_LIBS is defined, use the
C++11 versions of function, bind and type traits
in the tests and SafeBinder.  Otherwise the TR1 versions
are used.

We still use the TR1 version of result_of() as the C++11
version is not entirely compatible.