luainstance: fix -Wnarrowing compiler warnings on 32bit platforms