removing hardcoded hash comparisons from define-library, replacing with strcmp