Struggling Weatherford shrinks loss, grows revenue