CMake build working ok, all links working

Yippeeee!!!!

Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com>
various cmake fixes

Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com>