add link flags for libz, libbsd, and libedit
Merge pull request #44 from sjkelly/sjk/more-build-flags

add link flags for libz, libbsd, and libedit