Tweak CMake so that we can just build static libraries (important for Titan)
kill warnings