"elmdist" should contain number of elements, not number of nodes.
Add some preprocessor magic to also build with ParMetis 3.x

Signed-off-by: Convex Function <329364@gehry.mathepool.rwth-aachen.de>