Properly detect clang and TR1 features.

This means: a few hundred warnings less when building mangos-three with clang.