Builders FirstSource posts inflation-aided sales gain