Fix invalid berkeley db library path on OSX with homebrew.

brew --prefix retruns a fully qualified path, so using -L/$prefix results in a path with two leading '/'.