Fix all errors from turning on -Wpedantic et. al

Added extra flags to the GNU compiler in the Makefile (defined in
arch/extraflags.inc) and fixed all reported issues (mostly trailing
semicolons after function definitions).