Patch for fann version 1.0.6

* workaround for issue #10
* fix for issue #11