emake codegenerator (replacement for bootstrap)

Replaces commit 4514132 to address the problem in a better way.

See https://bugs.gentoo.org/show_bug.cgi?id=509592 for details.