Fix build dependencies for test suite programs