fixed compiling issue with GCC 4.7

As mentioned at http://gcc.gnu.org/gcc-4.7/porting_to.html.