Reverted main.cpp & updated winsys.cpp

Removed Raspberry Pi-specific code from main.cpp
Added Raspberry Pi-specific code  to winsys.cpp