Fix missing files and build script