fix building on gcc