Updated to support static Tk on non-Windows platforms