split out vgagui into it's own lib, update makefiles