[aegis-sub] Fixed dependecy and build issues.