Test whether CC is defined and use this otherwise use default

Note: original patch from 'mir'.