Fix mingw build

Define type macros only if those are not defined.
DWORD, WORD and BYTE may be defined on Windows.
Add comment for MinGW build
Merge pull request #89 from shirosaki/mingw_build

Fix MinGW build on Windows 7.