Fix warnings on some configurations