Conditionally compile ecube support with ECUBE_SUPPORT macro
Fix missing returning value
Fix crashes when acquisition board is not present