When running in mingw host as Windows processes, the active code page used today is the locale-specific codepage, which is not Unicode. This patch builds the utf8 resource object file using windres and adds it to LDFLAGS for mingw host, which makes all built executables use utf8 (65001 windows code page identifier).