Simple example to make static and dynamic library