fixed build on gcc