fix test on 32-bit
fix broken callback test on BSD
consolidate BSD targets