Oil extends losses after report shows rise in US crude build