Statically link Lua
Merge branch 'static_linking' into dev