keep symbols when generating bitcode
add cxx visibility flags to match original makefile
cmake add basic testing