Remove old config migration

Fixes #1194
configure: Fix checking for perl

Closes #1196
Fixes #1197
Merge https://github.com/hexchat/hexchat into cpp-dev