Retain old CMAKE_CXX_FLAGS while setting visibility.