fix: order of include files (mod2.h before all non-system stuff)
fix: porting(pselect), porting/unused (sem_timedwait,dup3)