Removed unused include file.
Added conditional check for syslog existence.

This should improve mingw build a little bit.