luasec: multiluaify and fix LDFLAGS

Change-Id: I5edc76fff68bb3ea2e5c7b629381de46e758571c