Lua: switch to dynamic library linking for windows