build share library on *unix system