core: fix Lua detection on OpenBSD with cmake