fixing c compile error on linux