set flags needed for shared libs on solaris