Improved PortableHook support.