Working on linux socket compatibility