Saner cmake build, now with install

Use cmake default "BUILD_SHARED_LIBS:BOOL" instead of build both types of libraries
you never want them both.