Add lcm and hcf functions. Allow use of -DGTK=<n> to select GTK version in configuration.