Misc cleanup. Unused code, warnings, project settings.