add 'create library' call to mainwin.cc GUI.