Apply settings also for headers and footers.
Fix typeof in mscv9