add lua to linker commands on msys or mingw for plugin, and add ltdl if using msys for plugin_test