I also tried to compile to exe your YouTube example that is simpler than my application.
I have the following files in my folder:
YouTube.wlua
WebView.dll
Then from this folder I generate the YouTube.exe with the command:
rtc -s -w . YouTube.wlua
Launching YouTube.exe I got a "Runtime error" dialog message:
"The procedure entry point lua_registerevent could not be located in the
dynamic link library <my folder path>\webview.dll"
Adding the lua54.dll to the folder and using instead the builld command:
rtc -w . YouTube.wlua
I got the message dialog: The procedure entry point GetCurrentDir could not be located in the
dynamic link library <my folder path>\YouTube.exe"