Changed the optimization option to "Minimize Size".
It has no negative effects.
Fixed access violation when removing a hook.