DE2145: Makefile wrangling to optimize libraries

See Vorne/xl#680.