fix: missing `type_traits` include
Usage of `std::is_trivially_constructible` in `defs.hpp` requires including `type_traits`. This missing include leads to errors about that type not being found when building with clang++-22 with libc++-22.
(cherry picked from commit fbe5262d7b90f307893e347beb00766fbd71ac86)