There is no easy way to include Dynamic-link library, it could be done, but...
There is easy way to include static-link library. Just look up for my bootloader posts, and explanation how to pass variables between main app and bootloader.