First working Linux version

Properly compiles and works in Ubuntu. Compiles in Raspbian too, but
does not exactly work yet...