Crude posts modest gains amid dwindling U.S. stockpile levels