cocoa: considerable fixes and hacks for VST plugins