Stocks extend losses ahead of 'fiscal cliff' talks