Win32 fixes for AES