avoid compiler warnings so it compiles cleanly with -Wall on debian and cygwin