Remove unneeded imports
Compile with -Wall by default
Refactor wikilinks into a few smaller functions