Fixed warning messages got with ruby -w.

I turned on the -w option for ruby in one of my project and I got some warning messages from debugger too. I fixed the issues in this patch.