Enable static/share compile