Makefile: move back common settings to main file
move unit test makefile to its place
Makefile: get rid of TARGETS
detach libutil
move util to a separate namespace
add missing makefile
detach libthread