Direct photon production beyond leading order in QCD