Usually I create multiple packages for my applications, for example:
1.Application's shared library package
2.Application's executable, icon, etc. Dependent on 1.

3.Plug-in for the application....