Switch header/source based on generic suffixes (not just the extension).