Remove unnecessary dllexport bits.
Log script errors when invoking Lua methods.