Added method destroyChild.
Added #pragma to disable dll warnings.