Use foreach when parsing LSB release file
Fix some resource/memory leaks
Migrate PluginVst2x to new File API