support shared build on unix