fixed all warnings, include arpa/inet.h, removed senseless getopts.flag