Fix compile warnings [skip ci]