CBOT corn, NYMEX oil post gains