fix build warning on 64bit env.

- fix warnings
- add "-Werror" into ruby/extconf.rb