Only load inputenc when tex is used. Lualatex and XeLaTeX don't need it. It conflicts with certain microtype configuration files.
Merge pull request #5 from markovandooren/master

Only load inputenc when pdftex is used.