support FreeBSD-10 release
freebsd: specify LDFLAGS by hand for workaround.
Merge branch 'support-freebsd'