minor fixes for building dist