Use boost.mutex in logger. Should be more portable to win32.