Fix portable build of test suite.