compile dependencies as objects