fix errors when building with gcc-4.7

fix errors when building with gcc-4.7

-fist commit-