Minimal changes to get new build system to build
permissions however will cause crash