fixes to eliminate warnings and compile on GCC cygwin