Fixes to Windows executable