Fix warnings on linux