Change add_definitions to set cxx flags