make and check both static and dynamic libs