daemon/Win32: NAME_MAX does not exist on Windows, use FILENAME_MAX instead.