trace-cmd: Add changes to compile for android

added changes to compile for Android.

Change-Id: Ibe6a751a8b2fb36385f53508c0758beaa4c9716e