Miscellaneous fixes: one for a show-stopping typo, the rest are compiler warnings clean-up