Fix a few compilation warnings