NNLO corrections to top pair production at hadron colliders: the quark-gluon reaction