Fixing a few warnings

Simple patch to remove a few compiler warnings that pops out with gcc 4.7.2 in debug mode