changes to make LedOutput work with my arduino program, and some compilation or config fixes.
fix more compile errors