Fix VTK issue on mavericks

Closes #410.