Fixed the remaining libc++ incompatibilities.

Also updated the binless methods to be compatible with the latest FLANN (1.8.4).