Compile return expressions properly.