improve portability, defining MAXDNAME and MAXCDNAME