[Core] Fixed some const issues.
[Util] Platform-agnostic serialization types.
[XSD] Removed automoc.
[XSD] Save settings in a separate thread.

Probably fixes #1435, probably breaks everything :(