Explicitly disable any optimizations in debug mode and fixed version matching for Share version contributor