Test failure with default prefix and parsing of keep-system-* args

Hi,

I was seeing a test failure when configured with the default `--prefix=/usr/local`. The test was supposed to return `-L/usr/local/lib`, but was returning nothing without specifying the (counter-intuitive) `--keep-system-cflags`. It looks like the parsing of these options was transposed.

Cheers,

Tony