fixed wrong include for memset
fixed two crashes (-k and -t under cygwin)