fix gem building