util: move strcase_equal and strcase_hash to util