compile with latest library versions, escpecialy the new socket code.
last few fixes to make the new socket code work.