Let compilers override permalink’s extensions.

Fixes #1373