Make configure's sed(1) expression for GHC_LDFLAGS more BSD-friendly.