fix retrieval of program path for MinGW builds without sdl
force usage of "W" functions when not compiled with -DUNICODE