src/main.c: cleanup UNIX things