using version patterns only if version is provided
re-ordered the dependencies-targets for stable linking (dependants last)
fixed multithreaded build command