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.