Added printtime (also -lrt in the Makefile)
Fixed *NIX compiler warnings
Added masterset/rset for select
TODO: set timeout to correspond to oldest unACKED packet