Fixed build issues on linux in logger