BlueLinx reports sales gains, but loss widens