Approaching chemical accuracy with density functional calculations: Diatomic energy corrections