Lua dl fix

This fixes the cmake file for Lua, specifying explicitly which dynamic loader to use. Without it, Lua doesn't use any dynamic loader and thus doesn't work with LuaRocks.

I need confirmation that this works from someone with linux, someone with macos and someone with freebsd, those are the platforms that could be broken by this fix.