use forward declaration for RefCount and fix name clash ref_count() vs ref_count
use forward declarations for RefCount also for other base objects
Fix malloc replacement detection and library flags
Fix FindHoard.cmake script
Fix typo in FindRubyNArray.cmake
fix build errors / warnings
fix typo in classifier_domainadaptationsvm_modular.py
fix imports from numpy in classifier_custom_kernel_modular.py