Add -DUNICODE when compiling MinGW with utf-8 encoding