Move connection configuration to tvtk common.
Only error fixes for tvtk examples.