Log Message: etlegacy: have cmake figure out whether -ldl should be used. Make per-OS PLISTs because for some reason it makes one file include per-OS names. It would be easier to just not do that... but that's what it already does. the linux case is actually "else". I think the linux logic can be used for all OSes after this.