gold, oil futures post modest gains