Fixes for Ubuntu host build

Patch fixes some trivial issues which can be seen on Ubuntu and break NDK build.
E.g. due to bash absence.

Change-Id: Iaca99636eaf662a5e3e3308638f811a68c3d601f
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
Merge "Fixes for Ubuntu host build"
Merge branch 'master' of https://android.googlesource.com/platform/ndk into HEAD
crazy linker: cleanup, fix logs not terminated with \n.

Change-Id: I7cf19c479b4f9bec3e36d5db8bd958f1d49d2b58