QCD corrections to heavy quark production in hadron-hadron collisions