fix dynflags dependencies in hooks-record patch