Fix installation and security tweaks