[sgen] Fix build with heavy binary protocol.