Inject hooks/events directly into library setup functions