Fix some warnings seen under ruby 2.0.0

Closes #281

Signed-off-by: Sam Phippen <samphippen@googlemail.com>