Update darnit/api/darnit_main.c

Fixed crash when exiting on windows with libdarnit compiled using O3 flag
Merge pull request #46 from h4xxel/patch-1

Fixed crash when exiting on windows with libdarnit compiled using O3 flag