fixed double linking of the embedded library in a statically built internal library