Adds -Wextra-semi to pedantic compilation.

Also fixes all warning messages.