Fix building on gcc