more make and dist: .o vs o, all potion libs, ...

rearrange order along p2
fix deps by using the proper .o .opic suffices
unify LINK targets to help windows
add ranlib for darwin
add LTO gold -O4 workaround for test/api/potion-test
rewrote sloc: in clean dir
cleanup clean target
add test.c testcase for a commonly failing target
dist all lib/potion* files