Added --enable-sharing-preserving configure flag