rename all methods, add main to ViewController
Only build C++ samples for supported platforms.

Linux and OpenWrt in this case.