Fix deprecations.

I noticed these while trying the `require(Pkg.dir("Tk", "examples", "manipulate.jl"))` example.