fix dependencies for parallel build of test programs