desktop: compile and run with exception on Windows