Fix compile error on gcc