Fix building sgen test suite.