update gemspec and resolved other warnings while building gem