Move AC_SUBST([EXTRA_LIBS]) later in configure.ac

I don't think that it matters, but putting it after all the places
that alter EXTRA_LIBS is a little nicer.