Move tests around. print settings on windows. Build go code against c shared library and remove old code. Delete some dead code. Fix linux build scripts.