Cleaned up build process to rely on dttools, except for the modified nvpair.
We will fix that later.