Set up the environment for runtimes before compilation has finished