remove unused BSD socket related code