Remove pthread_cancel api, as it is not defined android standard library. Adding pthread_kill api to handle input command thread. Change-Id: Ia9d7f3939f1f7a5851f6aa22fe0894acb814a902