Making it easier to add addons with libs and src

Reference issue: #3255