server: Prepare for supporting different runtimes