Move some GUI functions into a new file guifuncs.[ch] and adjust Makefile
Move clock set code into its own file and adjust Makefile.