Updates to prod build.

Fixes some problems with the production build process.