Ref #1 suppor static libs