Fix detection of PIC/shared/static/wl flags for f2c99