Fix compilation with ancient biosig versions
Fix test cases