Merge pull request #1 from rainers/structDestructors

refactorings for less GC information callbacks
fix shared library finalize issue