[WIP] neighbors module numpy 1.3 compatibility

Working on addressing the issue in #2245

I haven't been able to set up a working numpy1.3/1.4 build.  Because we know the buffer interface is causing problems, though, I'm going to work on it as much as I can.  Hopefully @GaelVaroquaux can test the progress on his build.