Run pre/post compile hooks with sub-env so vars are set.
Merge branch 'honor-compile-hook-env' into develop