r 3.1.2: Fix LDFLAGS for Linuxbrew

If LDFLAGS contains any -L options, configure sets LD_LIBRARY_PATH to
search those directories. Remove -LHOMEBREW_PREFIX/lib from LDFLAGS.