Better compatibility with Wordpress 3.4.2 and uses of register_uninstall_hook instead of register_desactivation_hook