fix the build for non-android targets; add host build for android [1/1]

[Problem]
We still want trace-cmd to build by typing make
captured binary trace can be parsed on host, and we need
the same tool for host, to do parsing.

[Solution]
Fix a few broken things.
Make sure both original and Android builds work as expected

[Platform]
supported platform: ariel
BranchTo: mainline

[Test]
host and target androind build is OK
native 'make' build is OK
executables seem to work fine

captured data on target with: trace-cmd record -e kmem:*
pulled data from target: adb pull /data/trace.dat
parsed data on host with: trace-cmd report

[Feature]
ftrace

Signed-off-by: Alexey Polyudov <alexeyp@lab126.com>