make catalog portable to bsd