fix gem build errors