fixed some minor compilation warnings