compile fixes

Assorted fixes to get things to compile and init.