[misc] Fixed a few compilation warnings