changed code for pcap inject
extended the ability for pcap injection
fixed the compilation problems
fixed warnings