Fix compile on gcc