Different compilers seem to have different ideas about TR1. G++ only seems to accept includes of the type:
#include #include
A tad hacky perhaps, but you could simply add the compiler tr1 directory to your include path.