This allows file and directory permissions work as intended. cmake is now filled with 'sudo' but with sudo timeout this should be fine.
This also fixed the need for manual linkin on firt build