make this code compile with NOINET