Introducing a build.ninja file, generated via a script. Also changed/fixed an error with F_OK