Manually define the NAME_MAX macro, to work around the compiling problem under MinGW