How do i compile both static and non static librarys under C (.a and .so) and how do i install them on the system so they can be found by the linker or programs.