bugfix return value type
update build options
use inet_pton in place of inet_aton
include WinSock2.h and arpa/inet.h in common.h