add ld options

ability to set LDFLAGS for homebrew issue on Mac OS X