Agent: SPARC build fixes