Add /dev directory which was erronously removed from Linux chroots.
Make pseudo random data inside chroot for platforms that lack it.
Disable parallel builds for deps, since not all of them support it.
Make MAKEFLAGS and LD_ALTEXEC inheritable in the chroot environment.
Put full path to make in MAKE variable.

Otherwise we risk that later assignments to the PATH variable changes
the version we use.
Merge pull request #8 from kacfengine/chroot_fixes

Chroot fixes
Merge pull request #10 from kacfengine/master

Base LMDB tarball checksum on content of each contained file.
Use correct gzcat tool where it is available.

Pure zcat tends to fail on the "difficult" Unices.
Use gtar tool where it is available.

Regular tar tends to fail on Solaris.
Don't let the POSIX shell test output anything.

It interferes with scripts that we need to run without producing any
output.
Include functions script in order to get a compliant shell on Solaris.
Delete bogus file created by tar before comparison.
Use rsync instead of cp, since GNU and AIX cp are incompatible.
Remove redundant specification of package file.
Remove useless AIX specific section.

They apparently tried to solve some problem on AIX, but all they did
was make it harder to build.

Also introduce one AIX specific flag that we *do* need, since the ELF
way of building libraries (.so files) is not the default there.
Make libgcc build script less sensitive to gcc version.

Also remove libstdc++ from the package, which no dependee actually
uses.
Merge pull request #11 from kacfengine/build_fixes

Build fixes
Auto detect number of cores in order to speed up using parallelization
Make sure we unmount stale proc mounts on the chroot host.
Make sure test results are collected even in the case of failure.

We do this by making it part of the test step itself.