Kill adb correctly under linux and mac
Fixed compilation error