fix pointer mismatches, warnings are errors again
fix FreeBSD compile errors
add IPv4 multicasting support