Fix console warnings on Linux