Added support for NO_SHARED in make install.