Weyerhaeuser records loss, to cut 1,500 jobs