Disable rehooking on lib load

It doesn't solve the problems

Refs #1366