Updated to support dynamically linked Tk on Windows