Updated make

Updated make: build a seperate library, link ui against it