Adapted to compile a shared library and a small test progam.-