New York Community to buy Flagstar for $2.6 billion