Fix windows repack support.
Fix 1.12 support.