Removed TR1 C++ dependency. Should still work for all reasonably new C++ compilers