Fixes for the dist target.