Minor syntax changes and support for Intel Galileo

This change fixes some syntax which was causing build breaks on other compilers, plus adds support for Intel Galileo.

This change was validated using Arduino 1.0.5-r2 on an Arduino Leonardo, as well as on Visual Studio 2013 with the Windows Developer Program for IoT on an Intel Galileo.
already fixed in the dev branch