fix gem build warnings