Fix warnings at compilation