little spike in c
little changes to work on linux