fix a few pedantic GCC warnings due to superfluous semicolons

these warnings are only only produced by GCC in its pedantic mode (and
possibly with -O3 in addition, but I haven't checked this...)
Merge pull request #150 from andlaus/fix_pedantic_warnings

fix a few pedantic GCC warnings due to superfluous semicolons