So, yes, the workaround Ben posted will work, but that's fixing the symptom, not the problem.
I'd still like to know what the enum-extract.pl script says for you (Ben) if you try invoking it (or what's in config.log when it fails). Because the problem with the common/amd64 headers location should be fixed already [1], it's possible you're having a separate problem; that error output is just what happens when enum-extract.pl doesn't output what's expected. - Rich [1] - https://github.com/zfsonlinux/zfs/issues/7358