How to use and build libraries for embedded