for whatever reason, the path where homebrew installs headers and libraries are no longer being searched by default. work around it by manually specifying them with -I and -L.