bug fixes and integration of WinAPICodePack