build also without logging in icecc

Look for the newly introduced logging.h header in icecc, and enable the
logging bits only when it is present.

This makes sure icemon can be built with icecc 1.0.x.