Fix --enable-unregistered by declaring missing RTS functions (#8748)