Added option to build the static library with PIC