Link time subst

New branch with the intention of using link-time substitution to break dependencies for unit tests

/ Johan