fix build on mingw, which somehow doesn't recognize the UNICODE macro correctly