inlined local fann lib