only fix clamav on 10.9, use brew's ENV helper

adding -Wl,-lstdc++ to LDFLAGS is required because clang
tries to use -lc++ instead of -lstdc++ when linking with ld.

see pull request #27592