Fix the toolchain from 4.7 to 4.8 since apparently the further isn't distributed with the NDK anymore.
Remove 'import bz2' which is not supported on recent Ubuntu versions.
Include a fix done on libuv to work around a broken pthread_sigmask on Android versions earlier than 4.1.