SConstruct: Fix external-external dependency bug in link_flags