[Misc] Fixed some compiler warnings