Remove dead CMake config and fix Linux link cruft (#536)