Building-products maker Masco Corp. on Monday posted a loss for its first quarter as sales of new home construction products fell and consumer spending on home improvement products declined.