Code changes required to compile the Ethernet library on Galileo

- Use pinMode() and digitalWrite() directly, instead of PORTB
- Clear compiler errors/warnings