make code work on gcc.