[FOLD] weak_fn compile fix