setup: more careful linker rules and attempt to make directories where possible
functions: danglin_links