Fixed compilation errors

ICMP Still needs testing