Break pure_all target into pure_nolink and linkext.
This allows breaking subdirs into subdirs_static and subdirs_dynamic.
This in turn allows building either static or dynamic when subdirs.