Removing useless semicolons, adding '-pedantic' to build flags

This warnings indicates genuine bugs that maybe gcc doesn't miscompile,
but llvm or MSVC might. Without the semicolons, the warnings are now
actually useful with this flag enabled.