[Extensions] Build fix

Fixes linking errors when building with component=shared_library.