Fix CLS compliance errors.
Fix project files to work with XBuild.
Fix the clean target in the makefile.
Update README.
Fix the core shutdown wait logic.