Fixed the compilation and archiving