fixing some build warnings