Fix warnings on unix