Losses narrow at Builders FirstSource