Has anyone actually tried building libdkim under Linux? There are two big errors that prevent it.
The first one is that the code relies on several #defines and typedefs from windef.h: the types DWORD, DWORD_PTR, WORD, and LONG, and the macros LOWORD(), HIWORD(), and MAKELONG().
The second one is in a separate bug report.