fix check_enet for linux