Simplify static/shared build rules