fix some minor compilation warnings