'stdlib.h' file not found nix-shell -p rustc -p cargo - p rust-analyzer

Trying to cargo add rust-mio yields this error:

Compiling rust-mio v0.2.0
error: failed to run custom build command for rust-mio v0.2.0

Caused by:
process didn’t exit successfully: /home/marc/projects-checked-out/rust/rust-jobvers-data-mixer/target/debug/build/rust-mio-a2ebcc618d9af5d0/build-script-build (exit status: 101)
— stdout
cargo:rustc-link-search=all=/root/cortx-motr/motr/.libs/
cargo:rustc-link-search=all=/root/messy/rust-mio/src
cargo:rustc-link-lib=motr
cargo:rustc-link-lib=mio
cargo:rustc-env=LD_LIBRARY_PATH=/root/cortx-motr/motr/.libs/:/root/messy/rust-mio/src

— stderr
warning: argument unused during compilation: ‘-L/root/cortx-motr/motr/.libs -Wl,-rpath=/root/cortx-motr/motr/.libs/’ [-Wunused-command-line-argument]
wrapper.h:1:10: fatal error: ‘stdlib.h’ file not found
warning: argument unused during compilation: ‘-L/root/cortx-motr/motr/.libs -Wl,-rpath=/root/cortx-motr/motr/.libs/’ [-Wunused-command-line-argument], err: false
wrapper.h:1:10: fatal error: ‘stdlib.h’ file not found, err: true
thread ‘main’ panicked at /home/marc/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rust-mio-0.2.0/build.rs:30:10:
Unable to generate bindings: ()
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Do you already know a fix for this ?

# TEST SCRIPT
#!/bin/sh
set -xe

echo NIX_PATH $NIX_PATH
echo should point to master or use P=rust_1_75.

export t=/tmp/rust-rust-mio-test
rm -fr $t || true
mkdir -p $t || true

export LIBCLANG_PATH="$(nix-build -A llvm.clang-unwrapped.lib $MR_vim/nixpkgs-master)/lib/libclang.so"
echo LIBCLANG_PATH $LIBCLANG_PATH

P=
# P=rust_1_75.

# -p glibc.dev -p glibc 
nix-shell -p rust-analyzer -p ${P}rustc -p ${P}cargo  -p clang -p llvm --run /bin/sh << EOF
cd $t
rustc --version
cargo new abc
cd abc
cargo add rust-mio
cargo run -- --help
EOF