[Tools] Fixed some compiler warnings