Fixed the cmake build to the new architecture, and made scrit compile despite not working.