moved dlsym_map functionality of crutilsd into own function