Add "weak" declarations of symbols used in safestack.h and lhash.h