src/main.c: remove Windows stuff
src/main.c: change C funtion style