Fixed some problems with flann_ctypes.py