wincng.h: Fixed warning about pointer targets differing in signedness
libgcrypt.h: Fixed warning about pointer targets differing in signedness
misc.c: Fixed warning about mixed declarations and code