I believe the linking API is the same.
As for headers, you’ll want to replace @cImport and @cInclude with std.Build.addTranslateC. Make a small C header file (e.g. imports.h) that #includes everything you need, then translate it using the build system into a Zig module, e.g. like so.