Fix build breakage by defining LOG_IF()