usercore,servicecore: fix loading of scriptcore.dll