Bug #145 pcap compile fx

Fixed the compilation issues for CentOS for issues #128 & #145

@fklassen Can you review this?