[build] Improvements to the build system added ability to add libraries