Added more conditional compilation for DHCP/PING