Support optional AIM library constructor/destructor.
- Allows module initialization in shared library builds.
- Support for this feature is GCC-specific.