Struggling newspapers sell off old headquarters