
Per the docs at https://cmake.org/cmake/help/latest/command/add_library.html, we should use `MODULE` rather than `SHARED` for the Lua libraries. This mostly affects macOS, where the libraries are compiled as MH_DYLIB (`.dylib`) rather than MH_BUNDLE (`.so`).