Oil prices rise on Mideast tensions; crude stock build caps gains