Initial Raspberry pi support

Adds cmake support for building raspberry pi and linux (tested with Debian) without requiring external-dependencies.
Raspberry pi still needs support for mouse and keyboard (gamepad should work) as it runs outside of X11. Given that this set of changes is mainly cmake though and affects Linux in addition to RPI, it seems sensible to have this as one pull request and the additional RPI features as a future one.