[core] various improvements

* Fix some coverity warnings and remove unused code
* Improve error reporting
* Improve DLL function call handling
* Remove standalone mode for pki.c
* Remove intellisense workaround as VS2013 seems to behave better
* Also update vid_data.c and bump Zadig version