Use system-wide paths, add script for compiling LuaD as shared

Version: 1.alpha.14.06

Signed-off-by: GreatEmerald <pastas4@gmail.com>