fix compilation warnings with recent compiler