Fix uninstall script and loader compilation