Fix compile warnings on linux