Fix potential crash at shutdown

Duplicate string to prevent crash at shutdown.
Switch printf to cout for consistency
Changing QoS library/profiles to be constants

- Moved the QoS library name and profile name into the .idl file as
constants.
- Fixed the output strings
Bug fix and cleanup

- Using QoS profiles defined as constants in the .idl file
- Correctly using the multicast QoS profile