Changed std::tr1 occurences to boost.

std::tr1 might not be supported by all compilers and will eventually
be dropped by others. Using boost instead makes this more
portable.

Pull requests for the other modules will follow shortly.