You also need to change in: src/test/regression.c line 53 #include <Windows.h> to #include <windows.h> One thing I noticed is that you seem to make a libical.pc but the install doesn't seem to install this into $prefix/lib/pkgconfig/ The libical.pc does not include a link to -lpthread if it is used.