[sgen] Fix build on Linux.