Fix some warnings seen under ruby 2.0.0

Closes #281