Build shared and static; merge CMake approaches; add install