Fixed some build warnings