VTK6 code fixes. VTK5 backward compatibility