The Mosaic project distributes surviving historical census microdata and here you can find already available data files in a harmonized format:
In addition there are shapefiles available for download, which refer to historical European administrative boundaries: