Fixed the compilation and the framework building.