Fix compilation errors on Windows
Factory constructor for preset
Factory constructor for Plugin, I/O to settings

The plugin I/O stuff doesn't make sense to have as a member, instead
this should be a plugin setting.
Factory constructor for sample source
Fix compiler warnings
Changes for new factory ctor api