move stage3_func typedef out of shared internal dynlink.h header