gplugin/gplugin

Turn on -Wextra if it's available and clean the warnings it found.

I also fixed most of the -Wpedantic warnings, but didn't turn it on as there
are a bunch of issues with it involving function pointers.

Testing Done:
Compiled and ran the unit tests.

Reviewed at https://reviews.imfreedom.org/r/989/
The following individuals have contributed to this project.
Ankit Vani <a@nevitus.org>
EionRobb <eion@robbmob.com>
Elliott Sales de Andrade <quantum.analyst@gmail.com>
Gary Kramlich <grim@reaperworld.com>
ivanhoe <ivanhoe@fiscari.de>
Jason Scherer <schereja@gmail.com>
John Bailey <rekkanoryo@rekkanoryo.org>
Mike Ruprecht <cmaiku@gmail.com>
Olaf Hering <olaf@aepfle.de>
Richard Laager <rlaager@pidgin.im>
Sorvival <sorvival@tutanota.com>