cache result of dlsym, plus fix for mac shared object lookup