Assorted fixes, and a guile compilation experiment

The compile experiment didn't work. More work needed, later.