Default to using TR1 libraries if lambda support is not enabled.

Only attempt to use C++11 standard library if compiler has C++11 mode enabled
(in gcc/clang with -std=c++0x or always under VS >= 2010)