Add PIC flags early so tests they affect give correct results