Fixed compile error on gcc