159
- platform detection via #ifdef
- renamed os.c to main.c, renamed a few functions