Added missing functions and other updates to compile in win32

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>