Some major and minor fixes for win32 version.

Fixed creation of metadata with hmac 0x14.
Added ECDSA support and signature checks.
Improved hmac/cmac hash compare functions.
Fixed batch mode.
Improved ecdsa checks for zeroed signatures.
Fixed program crash when rap\rifkey.bin file is not placed.