Avoid using the TR1 namespace

Users of OS X Mavricks live in a world without 'tr1' so lets all switch to libstdc++ and std=c++11.  The alternatives seem to be either leave out Mac 10.9 or use CPP - neither of which are appealing.