Fix minor Linux compiler error and warning

Confirmed to program an LPC810 on Ubuntu 10.04.