I do not believe the the method of calculating building costs changed. However, the old warehouses were not actually buildings, so did not affect the cost of buildings. When they were converted to Granaries, though, you now have more buildings in the regions. Since the cost of buildings depends on the total number of buildings in the region, that makes everything more expensive.