Build static and dynamic libs