Fix compile error on gcc version 4.6.3