Hook native methods after library load