Add in check for TkMacOSXGetRootControl on OSX when loading libtk

This should address https://github.com/JuliaLang/julia/issues/4631