Fix module_tcp_synscan for BSD