Fix some warnings pointed out by clang

http://www.cpantesters.org/cpan/report/065b413e-6fbc-11e2-a2f1-82091a5d253f