Some fixes for mimidrv & crypto. Preparation for Windows 10.