Cherry-picked from the OpenBSD ports tree.

  Append to LDFLAGS / CPPFLAGS rather than replacing them.