Fix compile failure on GCC 4.6