fixing compilation issues with logging changes, plus a few warnings