add PIC to library linking