Fixes a few compilation warnings