enforce static libraries when building statically