How to fix Not a valid Win32 application error?