Patches for check_log errors on non-Linux platforms [sf#1333956] [#591]