add option to disable tk as this breaks compilation.