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.
this returns a value in the dev branch. That should make visual studio stop complaining so your change to void here should not be necessary.