Fix Makefile
General cleanpus

Improve Makefile and linkage specifiers.