Compile static lib with PIC