Make linking configurable + remove obsolete semver dependency