On platforms supporting NAME_MAX macro, set MAX_FILELEN to that value.