added optional build dependency to gengen