$wgHooks is needed for LoadExtensionSchemaUpdates usage, read the comment right above it. Also needs use $wgAutoloadClasses. Fixup in r82680.
Redeclaring $IP was wrong, you're correct.