Fixed a few warnings on debian Wheezy