fixed "make test" with MPICH

...and a couple of minor build problems on my Gentoo nodes.