Split the build environment for the test programs to be independent of
the library build.