Drell-yan production at threshold to third order in QCD