Make v8 depend on libm on Linux and Android