libs: fix 'inconsistent DLL linkage' warnings on Windows