Fix cfg for linux/android during rust upgrade