build shared library on unix platforms