This check will fail in SConstruct#477:
elif "linux2" == os.sys.platform:
..since os.sys.platform now are "linux3".
Patch can be found here: https://bugs.gentoo.org/show_bug.cgi?id=375353
See possibly relevant discussion here: http://bugs.python.org/issue12326