Use /usr not /usr/local for base system components. Use /usr/lib/flua and /usr/share/flua (not lua) for consistency and to avoid other software accidentally finding our modules.
Also drop the version from the path, as flua represents an unspecified lua version that corresponds to the FreeBSD version it comes with.
Enable dlopen.