Fixed compiler errors on Pi