Some fixes to coercions for Windows.