fixed some build warnings