Fix some warnings seen under ruby 2.0.0

Closes #281

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Add a changelog entry for #282.
Merge pull request #282 from samphippen/fix-2.0.0-warnings

Fix some warnings seen under ruby 2.0.0