configure: reverse order of -l flags