fixes for initial startup on new machine, and building issues