Replaces 'ldflags' with 'ld_input'.

This clarifies the library dependencies of executables and test drivers as
simply input into the linker rather than being implicit dependencies that
happen to also get linked in.