The build-time environment dependency handling is broken.  This gets part way there.