move a few necessary things from evalplatform to evalcompiler