core: fix Lua detection on Cygwin with cmake
core: add pkg-config dependency for Cygwin packaging