manually defined the NAME_MAX macro, to work around the compiling problem under mingw