improved configure scripts
added pragma to test for vtk major versions
fixed case for mesh3d with missing triangles