corrected compilation warnings discovered by g++ 4.6.3

no more compilation warnings makes me happy ;)