fixes dist build errors