[Misc] Fixed a couple of compiler warnings