fix spurious GCC warnings

The root cause are pretty (too?) strict flags w.r.t. compiler
warnings. In this case, the offenders are "-Wmissing-declarations" and
"-Wtype-limits".
Merge pull request #227 from andlaus/fix_gcc_warnings

fix spurious GCC warnings