fixed warnings from compiler findings
- added missing header definition for tun_alloc
- added missing switch cases -> fixed by TODO/FIXME comment