Wrap CMAKE_SHARED_LIBRARY_CXX_FLAGS in quotes.

The variable is empty on some platforms (Windows), would cause issues.