Add dependencies from optimizer.json before adding dependencies found by inspecting source