Fix warnings on Linux