A 300-year-old East Lancashire building turned community centre is celebrating the opening of a £127,000 new extension.