fix compile error with MinGW-w64

Use _MAX_PATH instead of MAX_PATH.
Note that _MAX_MATH is defined in stdlib.h and MAX_PATH is defined in
windef.h which is included from windows.h.
Merge pull request #412 from k-takata/topic/mingw64-compile-error

fix compile error with MinGW-w64