Stock Building Supply reports loss in half-year results