Fix warnings while building gem