fix compile warnings of 3rd party library