I wrote a little patch for the cmake files, or it didn't install. I also used the NIX_LDFLAGS trick; they are not doing proper linking somehow.