A function to determine the currently used toolkit