Reduce repetition in _PROGRAMS related _LDADD generation.

Should be just some cleanup due to dislike of repetition of complexity.