Make log messages mutually exclusive (prevents segfault on C++98/03