Fix warnings in compilation